ModFileData

Extension: ".mdata"

ModFileData defines a "mod pack" that can be enabled/disabled by the player in the Start Menu.
After the "end" definition a text can be specified that is displayed as a tool tip that is shown when in the mod menu.

Common Definitions

"e" for End

Defines the end of a FileData.
If not defined: No FileData is defined.

"i" for Identifier "Type > String"

Defines an identifier used for identification of FileData and overriding of some FileData. Identifiers are converted to all lower case during load.
If not defined: Set to name.

"n" for Name "Type > String"

Defines a name used in some FileData.
If not defined: Set to identifier.

"p" for Priority "Type > Integer"

Defines a priority that is used for overriding FileData. Higher priority overrides lower priority.
If not defined: Is set to 0.

"v" for Value "Type > String=(Any Type)"

Defines a value for this file.
If not defined: No Value is set.

"x" for NSFW "Type > Separated Array of Type > String"

Defines the FileData as NSFW, and sets the NSFW categories.
If not defined: FileData is treated as SFW.

"#" for File Tag "Type > Separated Array of Type > String"

Defines file tags that can be used to later in lua scripts.

"@" for Insert Value

Defines a value that is inserted into a given data map.
Example: @=extra=can_take_photo=1

"~" for Skip

Defines this line as being skipped.

"a" for Affected "Type > String"

Defines an extension of the files that should be affected.
If not defined: All files in the folder are affected.
Example: "a=.cdata"

"r" for Requirement "Type > String"

Defines a lua script that should return a Type > Boolean. If false is returned the mod is forcefully disabled and can't be enabled by the player. This is only checked during load.
If not defined: This mod can always be enabled. (If "m" is valid.)
Example: "r=isFileDataLoaded(".sdata", "energy")"

"m" for Mod Requirement "Type > Separated Array"

Defines other ModFileData identifiers, which are checked to be enabled.
If not defined: This mod can always be enabled. (If "r" is valid.)
Example: "r=base_lua_library|base_other_mod"

"g" for Group "Type > String"

Defines the group this ModFileData will be in. Groups are nested from outer to inner.
For example: "Gameplay|Social" will be converted to.

Gameplay

Social

Mod Name

If not defined: This ModFileData will be put in the group "No Group".
Example: "g=Gameplay|Social"

"c" for Credit "Type > String"

Defines a text that is displayed in the credits. This is displayed after the name.
If not defined: This FileData will not be shown in the credits.
Example: "c=John Smith"